# Maintainer: Norbert Pfeiler <norbert.pfeiler+aur ät gmail.com>

_realname=cppreference-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=20220730
pkgrel=1
pkgdesc="A complete reference for the features in the C++ Standard Library, for qt help (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://en.cppreference.com/"
license=('CCPL:cc-by-sa')
source=("https://github.com/PeterFeicht/cppreference-doc/releases/download/v${pkgver}/qch-book-${pkgver}.tar.xz")
sha256sums=('da16fce6f2b5528302779b7dc9521e076672c17e808d29ea9c897bda0e9f8248')

package() {
  local _qch=cppreference-doc-en-cpp.qch
  install -Dm644 "${srcdir}/${_qch}" "${pkgdir}${MINGW_PREFIX}/share/qt6/doc/${_qch}"
}
